
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
import ui



def click():
    print("交换风格成功")

if __name__ == '__main__':
    app = QApplication(sys.argv)
    MainWindow = QMainWindow()
    ui = ui.Ui_MainWindow()
    ui.setupUi(MainWindow)
    MainWindow.show()
    ui.pushButton.clicked.connect(click)
    sys.exit(app.exec_())